import { IsNotEmpty, IsString, Length, IsNumber} from 'class-validator'
export class CreateLoginDto {
      @IsNotEmpty()
      @IsString()
      @Length(5, 10,{
        message:"字符长度在5-10之间！"
      })
      name: string;
      @IsNumber()
      age: number;
}
